YUI.add('wfaboutpanel', function (Y) {
//    var openBtn = Y.one('#openHelp'),
    var panel, bb;

	function showPanel() {
	    panel.show();
	    bb.transition({
	        duration: 0.5,
	        top     : '80px'
	    });
	}
	
	function hidePanel() {
	    bb.transition({
	        duration: 0.5,
	        top     : '-300px'
	    }, function () {
	        panel.hide();
	    });
	}
	
	panel = new Y.Panel({
	    srcNode: '#about-panel',
	    width  : 330,
	    xy     : [300, -300],
	    zIndex : 9999,
	    modal  : true,
	    visible: false,
	    render : true,
	    buttons: [
	        {
	            value  : '关闭',
	            section: 'footer',
	            action : function (e) {
	                e.preventDefault();
	                hidePanel();
	            }
	        }
	    ]
	});
	
	bb = panel.get('boundingBox');
	
	Y.showAboutPanel =  function(){
		showPanel();
	};
	
},'0.0.1',{requires:['transition', 'panel']});